package day03.abstracts;

/**
 * @author yangwenqi
 * @decs TODO
 * @date 2025/4/20
 */
public abstract class Employee {
    private String name;       // 姓名
    private String id;         // 工号
    private double pay;        // 工资

    // 构造方法
    public Employee(String name, String id, double pay) {
        this.name = name;
        this.id = id;
        this.pay = pay;
    }


    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public double getPay() {
        return pay;
    }

    public void setPay(double pay) {
        this.pay = pay;
    }
    // 抽象涨薪方法
    public abstract void addSalary();

}

